﻿using System.ComponentModel.DataAnnotations;

namespace XsqTech.SmartOA.Domain.Table
{
    /// <summary>
    /// 数据字典主表
    /// </summary>
    public class Dict
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int DictId { get; set; }
        /// <summary>
        /// 主表名称
        /// </summary>
        [StringLength(50)]
        [Required]
        public string DictName { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(50)]
        [Required]
        public string? DictCreateUser { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? DictCreateTime { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(50)]
        [Required]
        public string? DictUpdateUser { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? DictUpdateTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int DictState { get; set; }
        /// <summary>
        /// 代码
        /// </summary>
        public string DictCode { get; set; }
        /// <summary>
        /// 副ID
        /// </summary>
        public int? DictFId { get; set; }
    }
}
